Optimal. Leaf size=83 \[ \frac{a \cos (c+d x)}{2 b d (a+b) \left (a-b \cos ^2(c+d x)+b\right )}-\frac{(a+2 b) \tanh ^{-1}\left (\frac{\sqrt{b} \cos (c+d x)}{\sqrt{a+b}}\right )}{2 b^{3/2} d (a+b)^{3/2}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0885921, antiderivative size = 83, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 23, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.13, Rules used = {3186, 385, 208} \[ \frac{a \cos (c+d x)}{2 b d (a+b) \left (a-b \cos ^2(c+d x)+b\right )}-\frac{(a+2 b) \tanh ^{-1}\left (\frac{\sqrt{b} \cos (c+d x)}{\sqrt{a+b}}\right )}{2 b^{3/2} d (a+b)^{3/2}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3186
Rule 385
Rule 208
Rubi steps
\begin{align*} \int \frac{\sin ^3(c+d x)}{\left (a+b \sin ^2(c+d x)\right )^2} \, dx &=-\frac{\operatorname{Subst}\left (\int \frac{1-x^2}{\left (a+b-b x^2\right )^2} \, dx,x,\cos (c+d x)\right )}{d}\\ &=\frac{a \cos (c+d x)}{2 b (a+b) d \left (a+b-b \cos ^2(c+d x)\right )}-\frac{(a+2 b) \operatorname{Subst}\left (\int \frac{1}{a+b-b x^2} \, dx,x,\cos (c+d x)\right )}{2 b (a+b) d}\\ &=-\frac{(a+2 b) \tanh ^{-1}\left (\frac{\sqrt{b} \cos (c+d x)}{\sqrt{a+b}}\right )}{2 b^{3/2} (a+b)^{3/2} d}+\frac{a \cos (c+d x)}{2 b (a+b) d \left (a+b-b \cos ^2(c+d x)\right )}\\ \end{align*}
Mathematica [C] time = 0.49552, size = 160, normalized size = 1.93 \[ \frac{\frac{2 a \sqrt{b} \cos (c+d x)}{2 a-b \cos (2 (c+d x))+b}+\frac{(a+2 b) \tan ^{-1}\left (\frac{\sqrt{b}-i \sqrt{a} \tan \left (\frac{1}{2} (c+d x)\right )}{\sqrt{-a-b}}\right )}{\sqrt{-a-b}}+\frac{(a+2 b) \tan ^{-1}\left (\frac{\sqrt{b}+i \sqrt{a} \tan \left (\frac{1}{2} (c+d x)\right )}{\sqrt{-a-b}}\right )}{\sqrt{-a-b}}}{2 b^{3/2} d (a+b)} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.081, size = 80, normalized size = 1. \begin{align*}{\frac{1}{d} \left ( -{\frac{\cos \left ( dx+c \right ) a}{ \left ( 2\,a+2\,b \right ) b \left ( b \left ( \cos \left ( dx+c \right ) \right ) ^{2}-a-b \right ) }}-{\frac{a+2\,b}{ \left ( 2\,a+2\,b \right ) b}{\it Artanh} \left ({b\cos \left ( dx+c \right ){\frac{1}{\sqrt{ \left ( a+b \right ) b}}}} \right ){\frac{1}{\sqrt{ \left ( a+b \right ) b}}}} \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 1.87887, size = 721, normalized size = 8.69 \begin{align*} \left [\frac{{\left ({\left (a b + 2 \, b^{2}\right )} \cos \left (d x + c\right )^{2} - a^{2} - 3 \, a b - 2 \, b^{2}\right )} \sqrt{a b + b^{2}} \log \left (-\frac{b \cos \left (d x + c\right )^{2} - 2 \, \sqrt{a b + b^{2}} \cos \left (d x + c\right ) + a + b}{b \cos \left (d x + c\right )^{2} - a - b}\right ) - 2 \,{\left (a^{2} b + a b^{2}\right )} \cos \left (d x + c\right )}{4 \,{\left ({\left (a^{2} b^{3} + 2 \, a b^{4} + b^{5}\right )} d \cos \left (d x + c\right )^{2} -{\left (a^{3} b^{2} + 3 \, a^{2} b^{3} + 3 \, a b^{4} + b^{5}\right )} d\right )}}, \frac{{\left ({\left (a b + 2 \, b^{2}\right )} \cos \left (d x + c\right )^{2} - a^{2} - 3 \, a b - 2 \, b^{2}\right )} \sqrt{-a b - b^{2}} \arctan \left (\frac{\sqrt{-a b - b^{2}} \cos \left (d x + c\right )}{a + b}\right ) -{\left (a^{2} b + a b^{2}\right )} \cos \left (d x + c\right )}{2 \,{\left ({\left (a^{2} b^{3} + 2 \, a b^{4} + b^{5}\right )} d \cos \left (d x + c\right )^{2} -{\left (a^{3} b^{2} + 3 \, a^{2} b^{3} + 3 \, a b^{4} + b^{5}\right )} d\right )}}\right ] \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.13805, size = 126, normalized size = 1.52 \begin{align*} \frac{{\left (a + 2 \, b\right )} \arctan \left (\frac{b \cos \left (d x + c\right )}{\sqrt{-a b - b^{2}}}\right )}{2 \,{\left (a b + b^{2}\right )} \sqrt{-a b - b^{2}} d} - \frac{a \cos \left (d x + c\right )}{2 \,{\left (b \cos \left (d x + c\right )^{2} - a - b\right )}{\left (a b + b^{2}\right )} d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]